package part20;

import part20.annotation.ExtractInterface;

/**
 * @author wcj
 * @Date 2021/6/6 17:45
 * @Version 1.0
 */
@ExtractInterface("IMultiplier")
public class Multiplier {

 public int multiply(int x, int y) {
  int total = 0;
  for (int i = 0; i < x; i++) {
   total = add(total, y);
  }
  return total;
 }

 public int add(int x, int y) {
  return x + y;
 }
}
